﻿<!--Page to handle the scheduling of new conferences through filling
    out form. Form will include a submit button which will be followed
    by a confirmation dialog box. In addition, the form will have 
    a consulting counselor option.-->
    <Page x:Class="PTCScheduler.NewConferenceForm_Page"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Schedule New Conference">

    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="256*" />
            <RowDefinition Height="224*" />
        </Grid.RowDefinitions>
        
        <!--Student Name is entered into this Text Box-->
        <!--The Teacher's name is entered into this Text Box-->
        <!--The Room for the conference to be held in will be here-->
        <!--The Student's ID is entered here-->
        <!--The Date is dislpayed here, grabbed from prev page-->
        <!--The Time editable widget thing will be here-->
        <!--The user can choose if a Counselor should attend-->
        <!--The user may enter additional comments into this Text Box-->
        <Label Content="Comments:" Height="28" HorizontalAlignment="Left" Margin="22,0,0,169" Name="lblComments" VerticalAlignment="Bottom" Grid.Row="1" Style="{StaticResource LabelStyle}" />
        <TextBox Height="130" HorizontalAlignment="Left" Margin="105,19,0,0" 
                 Name="txtComments" VerticalAlignment="Top" Width="693" Grid.Row="1" BorderThickness="5" 
                  TextWrapping="Wrap" MaxLength="250" BorderBrush="White" FontFamily="Arial" FontWeight="Bold" FontSize="16"
                 TextBlock.LineHeight="30" TextBlock.LineStackingStrategy="BlockLineHeight">
            <TextBox.Background>
                <ImageBrush ImageSource="/PTCScheduler_Software_Engineering;component/Images/comments.png" Stretch="UniformToFill" TileMode="None" />
            </TextBox.Background>
        </TextBox>
        <!--This button will schedule the conference. It will add all the information to the database and return the user to the MainWindow Page.-->
        <Button Content="Schedule" Grid.Row="1" HorizontalAlignment="Left" Margin="696,155,0,0" Name="btnSchedule" VerticalAlignment="Top" FontFamily="Arial" Style="{StaticResource ButtonStyle}" Width="96" Click="btnSchedule_Click" />
        <GroupBox Header="Student Details" Height="103" HorizontalAlignment="Left" Margin="14,138,0,0" Name="studentinfogroupBox" VerticalAlignment="Top" Width="254" Background="White">
            <Grid Background="#FFC9E6F3">
                <Label Content="Student ID:" Height="28" HorizontalAlignment="Left" Margin="2,14,0,0" Name="lblStudentID" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="90,16,0,0" Name="txtStudentID" VerticalAlignment="Top" Width="144" MaxLength="9" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Conference Details" Height="126" HorizontalAlignment="Left" Margin="12,6,0,0" Name="groupBox1" VerticalAlignment="Top" Width="256" Background="White">
            <Grid Height="92" Background="#FFC9E6F3">
                <Label Content="Date:" Height="28" HorizontalAlignment="Left" Margin="6,8,0,0" Name="lblDate" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="92,8,0,0" Name="txtDate" VerticalAlignment="Top" Width="144" IsEnabled="True" IsReadOnly="True"/>
                <Label Content="Time:" Height="28" HorizontalAlignment="Left" Margin="4,33,0,0" Name="lblTime" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
                <TextBox Text="04:00 PM" Height="23" HorizontalAlignment="Left" Margin="92,35,0,0" Name="txtTime" VerticalAlignment="Top" Width="144" MaxLength="8" />
                <Label Content="Location:" Height="28" HorizontalAlignment="Left" Margin="6,62,0,0" Name="locationlbl" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="92,64,0,0" Name="locationtxt" VerticalAlignment="Top" Width="144" MaxLength="25" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Teacher Details" Height="235" HorizontalAlignment="Left" Margin="274,6,0,0" Name="groupBox2" VerticalAlignment="Top" Width="274">
            <Grid Background="#FFC9E6F3">
                <Label Content="Teacher Name:" Height="28" HorizontalAlignment="Left" Margin="6,9,0,0" Name="lblTeacherName" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
                <ComboBox Height="23" HorizontalAlignment="Left" Margin="121,10,0,0" Name="teachercomboBox" VerticalAlignment="Top" Width="135" Background="White" IsEditable="False" SelectedValuePath="Content"/>
                <ListBox Height="126" HorizontalAlignment="Left" Margin="121,39,0,0" Name="teacherListBox" VerticalAlignment="Top" Width="135" AlternationCount="2"/>
                <Button Content="+ Add New Teacher" Height="39" HorizontalAlignment="Left" Margin="131,167,0,0" Name="addteacherbtn" VerticalAlignment="Top" Width="125" Style="{StaticResource ButtonStyle}" Click="addteacherbtn_Click" FontSize="12" />
                <Label Content="Cc:" Height="28" HorizontalAlignment="Left" Margin="68,41,0,0" Name="label1" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
                <Button Content="- Remove Teacher" Height="39" HorizontalAlignment="Left" Margin="7,167,0,0" Name="removeteacherbtn" VerticalAlignment="Top" Width="118" Style="{StaticResource ButtonStyle}" Background="Tomato" Click="removeteacherbtn_Click" FontSize="12" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Counselor Details" Height="235" HorizontalAlignment="Left" Margin="554,6,0,0" Name="groupBox3" VerticalAlignment="Top" Width="244">
            <Grid Background="#FFC9E6F3">
                <CheckBox Content="Counselor Needed" Height="16" HorizontalAlignment="Left" Margin="12,9,0,0" Name="chkCounselor" VerticalAlignment="Top" IsThreeState="False" FontFamily="Arial" FontWeight="Bold" FontSize="14" Checked="chkCounselor_Checked" Unchecked="chkCounselor_Unchecked" />
                <Label Content="Counselor Name:" Height="28" HorizontalAlignment="Left" Margin="11,36,0,0" Name="counselorNamelbl" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Visibility="Hidden" />
                <ComboBox Height="23" HorizontalAlignment="Left" Margin="12,68,0,0" Name="counselorComboBox" VerticalAlignment="Top" Width="214" Background="White" Visibility="Hidden"/>
            </Grid>
        </GroupBox>
        <Label Content="Please enter a time between 02:00 PM and 06:00 PM." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="24,241,0,0" Name="lblTimeFrame" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" Grid.RowSpan="2" />
        <Label Content="Please enter valid time (Example: 03:30 PM)" Height="28" HorizontalAlignment="Left" Margin="24,241,0,0" Name="lblValidTime" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="Red" Visibility="Hidden" Grid.RowSpan="2" />
        <Label Content="Please enter a valid student id." Height="28" HorizontalAlignment="Left" Margin="24,241,0,0" Name="lblValidStudentID" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="Red" Visibility="Hidden" Grid.RowSpan="2" />
        <Label Content="Please select a teacher or enter a valid student ID." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="24,241,0,0" Name="lblValidTeacher" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" Grid.RowSpan="2" />
        <Label Content="This student has already been scheduled for a conference at this time." Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="24,241,0,0" Name="label2" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" Grid.RowSpan="2" />
    </Grid>
</Page>
